<script src="./vue.js"></script>
    <div id="app">
        <div v-for="(item,index) in list" data-id="index">索引值：{{index}},内容:{{item}}</div>
    </div>
    <script>
        var vue=new Vue({
            el:'#app',
            data: {
               list:[1,2,34,5,6]
            }
        });
    </script>
